package com.company.common.exceptioncode;


import com.company.common.exception.ErrorCode;

public enum ServiceCode implements ErrorCode {
    
    OK(0,"操作成功"),
    SYSTEM_ERROR(1,"服务器内部异常"),
    LOGIN_ERROR(2,"未登录或超时"),
    ISC_ERROR(3,"用户登陆失败，连接ISC服务器失败"),
    PARAM_IS_EMPTY(100,"参数不能为空"),
    PARAM_IS_NULL(101,"参数不能为NULL"),
    USER_NOT_EXITS(200,"用户不存在"),
    USER_IS_EXITS(205,"用户已存在"),
    PASSWORD_PASS_ERRPR(201,"密码解密失败"),
    PASSWORD_ERRPR(202,"密码错误"),
    USERNAME_ERRPR(203,"用户账号不存在"),

    ;
    private int code;
    private String message;
	
    
    private ServiceCode(int code, String message)
    {
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
